<template>
  <div>
    <div class="no-result">
      <img :src="src" alt />
      <p>{{msg}}</p>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    src: {
      type: String,
      default: '',
      required: true
    },
    msg: {
      type: String,
      default: '暂无消息'
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/mixin.scss";
.no-result {
  @include hCenter();
  top: 2.5rem;
  img {
    width: 3rem;
    height: 4.04rem;
  }
  p {
    font-size: 0.28rem;
    font-family: PingFang SC;
    font-weight: 400;
    color: rgba(0, 4, 0, 1);
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
  }
}
</style>
